import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -17
 * Time: 23:20
 */
public class Employee extends Person{
    private String dept;
    private String salary;
    private Date hire;

    public Employee(String name, String addr, String telp, String emil, String dept, String salary, Date hire) {
        super(name, addr, telp, emil);
        this.dept = dept;
        this.salary = salary;
        this.hire = hire;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "dept=" + dept +
                ", salary=" + salary +
                ", hire=" + hire +" "+super.toString()+
                '}';
    }
}
